CC=g++
# JRE位置
JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.282.b08-1.el7_9.x86_64
TARGET=libhello.so
OBJ=hello.cpp

all:  compile

compile:
	$(CC) -fPIC -shared -I $(JAVA_HOME)/include/ -I $(JAVA_HOME)/include/linux/ -o $(TARGET) $(OBJ)
